package com.yj.answer.service;

import com.yj.answer.entity.Answer;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 题目 服务类
 * </p>
 *
 * @author yj
 * @since 2023-07-07
 */
public interface IAnswerService extends IService<Answer> {

    List<Answer> RandTopics(Integer num);

    List<Answer> chapterTopics(String chapter);

    List<Answer> wrongtopic();

    boolean exercises(Answer answer);

    HashMap<String, Integer> homepage();

    List<HashMap<String,Object>> chapterLists();

    void insertAuestions(Answer answer);
}
